package video.com.mapper;

import org.apache.ibatis.annotations.Param;
import video.com.entity.ChatRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import video.com.transportEntity.vo.CommentPage;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xwj
 * @since 2023-11-11
 */
public interface ChatRecordMapper extends BaseMapper<ChatRecord> {

    List<Map<String, Object>> getCommentList(@Param("sortFiled") CommentPage sortFiled);
    List<Map<String, Object>> getSubCommentList(@Param("sortFiled") CommentPage sortFiled);

    long getSubCount(@Param("sortFiled") CommentPage sortFiled);

    void like(@Param("info") Map<String, Object> info);

    void disagree(@Param("info") Map<String, Object> info);
}
